/*
Vertigo Tip by www.vertigo-project.com
Requires jQuery
modified for Killdabugs by Team 1 (Hoang, Vi, Toan)
*/

function vtip() {
    $(".vtip").mouseenter(function (e) {
        this.t = this.title;
        this.title = '';
        offset = $(this).offset();
        $('body').append('<div id="a-tooltip" class="hover"><div>' + this.t + '</div>');

        $('div#a-tooltip').each(function () {
            var divHeight = $(this).outerHeight();
            $(this).append('<span style="left: 14px">&nbsp;</span>');
            $(this).hide().css("top", (offset.top - divHeight - 20) + "px").css("left", (offset.left - 12) + "px").fadeIn("fast");
        });
    });
    $(".vtip").mouseleave(function () {
        this.title = this.t;
        $("div#a-tooltip").fadeOut("fast", function () { $(this).remove(); });
    });
};